/**
 * 微信/电话浮层 — 参考双栏底栏（橙 / 蓝）+ 微信绿悬浮球
 * 色值：橙 #FF8C00 · 蓝 #1E4FD9 · 绿 #24AF13
 */
:root {
  --erx-orange: #ff8c00;
  --erx-blue: #1e4fd9;
  --erx-green: #24af13;
  --erx-bar-h: 56px;
}

body.css365iz-body {
  padding-bottom: var(--erx-bar-h);
}

/* 底栏「拨打电话索要联系」前：双气泡对话图标（Octicons comment-discussion，白） */
.erx-wx-bar-wechat-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: block;
  color: #fff;
}

.erx-weixin-ball .erx-wx-icon-weixin::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8.5 10.5c.8 0 1.5-.7 1.5-1.5S9.3 7.5 8.5 7.5 7 8.2 7 9s.7 1.5 1.5 1.5zm7 0c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5-1.5.7-1.5 1.5.7 1.5 1.5 1.5z'/%3E%3Cpath d='M12 2C6.5 2 2 5.6 2 10c0 2.2 1.1 4.2 2.9 5.6L4 22l6.3-3.1c.5.1 1 .2 1.7.2 5.5 0 10-3.6 10-8.1S17.5 2 12 2zm0 14.2c-3.4 0-6.2-2.3-6.2-5.1S8.6 6 12 6s6.2 2.3 6.2 5.1-2.8 5.1-6.2 5.1z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.iconfont.erx-wx-icon-success::before {
  content: "✓";
  font-family: inherit;
}

.iconfont.erx-wx-icon-close::before {
  content: "×";
  font-family: inherit;
  font-weight: 700;
}

.iconfont.erx-wx-icon-tel.erx-wx-icon-tel--knob::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8c00'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* 复制成功遮罩 */
#erx-weixin-overlay.erx-weixin-open {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 16px;
  box-sizing: border-box;
}

#erx-weixin-overlay.erx-weixin-open.erx-widget-visible {
  display: flex;
}

.erx-wx-box {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  padding: 22px 18px 16px;
  text-align: center;
  box-sizing: border-box;
}

.erx-wx-icon-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(36, 175, 19, 0.12);
  color: var(--erx-green);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
}

.erx-wx-box h5 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1f2e;
}

.erx-wx-ow {
  text-align: left;
}

.erx-wx-ts {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 10px;
}

.erx-wx-ts em {
  font-style: normal;
  font-weight: 700;
  color: var(--erx-blue);
}

.erx-wx-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  background: var(--erx-blue);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.erx-wx-btn:hover {
  filter: brightness(1.08);
}

.erx-wx-box > .erx-wx-close.erx-wx-icon-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.erx-wx-box > .erx-wx-close.erx-wx-icon-close:hover {
  color: #1e293b;
}

/* 右侧悬浮球 — 微信绿 */
.erx-weixin-ball {
  position: fixed;
  right: 16px;
  bottom: calc(var(--erx-bar-h) + 14px);
  z-index: 10040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--erx-green);
  box-shadow: 0 6px 18px rgba(36, 175, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  border: none;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.erx-weixin-ball:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(36, 175, 19, 0.55);
}

/* 底栏 — 左右各 50% */
.erx-weixin-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10030;
  display: flex;
  align-items: stretch;
  min-height: var(--erx-bar-h);
  height: var(--erx-bar-h);
  background: transparent;
  border: 0;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.erx-wx-tel-half {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  background: var(--erx-orange);
  color: #fff !important;
  text-decoration: none;
  box-sizing: border-box;
}

.erx-wx-tel-icon-ring {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.erx-wx-tel-num {
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.erx-wx-wechat-half {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--erx-blue);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
}

.erx-wx-wechat-half:hover {
  filter: brightness(1.05);
}

.erx-wx-wechat-cta {
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #fff;
}

@media (max-width: 380px) {
  .erx-wx-wechat-cta {
    font-size: 11px;
  }

  .erx-wx-tel-num {
    font-size: 12px;
  }

  .erx-wx-tel-icon-ring {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .erx-weixin-ball {
    right: 12px;
    width: 50px;
    height: 50px;
  }
}
